package com.junyi.starter;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 默认的 Key，支持自定义Key，在 yml 中添加 my.encrypt.key= ...
 * @time: 2022/7/14 11:26
 * @version: 1.0
 * @author: junyi Xu
 * @description:
 */
@Configuration
@ConfigurationProperties(prefix = "my.encrypt")
public class EncryptProperties {
    private final static String DEFAULT_KEY = "aaaabbbbccccdddd";
    private String key = DEFAULT_KEY;

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }
}
